.class Lcom/direction/hold/ui/SearchActivity$3;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/text/TextWatcher;


# instance fields
.field private synthetic a:Lcom/direction/hold/ui/SearchActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/SearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 3

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->b:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;

    const/4 v2, 0x0

    iput-object v2, v0, Lcn/cheln/explorer/ui/SearchListViewHolder$ExecBody;->c:Ljava/lang/Boolean;

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    iput-object v1, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    sput-object v1, Lcom/direction/hold/ui/SearchActivity;->F:Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v1, v1, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/SearchActivity;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/SearchActivity;->L()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/SearchActivity;->K:Lcn/cheln/explorer/ui/SearchListViewHolder;

    iget-object v0, v0, Lcn/cheln/explorer/ui/SearchListViewHolder;->e:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/SearchActivity;->L()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    :goto_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/direction/hold/ui/SearchActivity$3;->a:Lcom/direction/hold/ui/SearchActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/SearchActivity;->L()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "---------onTextChanged"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    return-void
.end method
